#ifndef _TRACE_OUT_H
#define _TRACE_OUT_H
#include <stdlib.h>
#include <stdio.h>



typedef struct thread_ctl
{
	char out_filename[40];	
}thread_ctl;


struct thread_ctl* salve_thread_ctl_constructor();
void slave_thread_ctl_destruct(struct thread_ctl* self);
void slave_init_self(struct thread_ctl* self, char*  mydir);
void slave_end_file_spawn_self(struct thread_ctl* self);
void slave_end_file_spawn();
void slave_init_trace_ctl(char*  mydir);


FILE* slave_get_file_self(struct thread_ctl* self);
void slave_print(const char* format, ... );
void slave_print_long_long(struct thread_ctl* self,long long data);
FILE*  slave_get_file();


void slave_print_to_internal_thread_file(const char* format, ... );
void slave_print_long_long_thread_file(long long data);


#endif


